home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-11
/
butt01.zip
/
MSG24.PRG
< prev
next >
Wrap
Text File
|
1993-01-04
|
786b
|
30 lines
*:*********************************************************************
*:
*: Program: MSG24.PRG
*:
*: System: MIS Consulting
*: Author: Charles Alan Butler
*: Copyright (c) 1989, Charles Alan Butler
*: Last modified: 05/16/89 18:55
*:
*:
*: Documented 09/17/89 at 16:39 SNAP! version 3.12f
*:*********************************************************************
** output a line @ 24, centering the text
PARAMETERS msgtxt
TmpColor=SYS(2001,'COLOR')
SET COLOR TO W+/B
@ 24,0
DO CASE
CASE LEN(msgtxt)=0
** clear only
CASE LEN(msgtxt)>79
@ 24,0 SAY LEFT(msgtxt,79)
OTHERWISE
@ 24,40-LEN(msgtxt)/2 SAY msgtxt
ENDCASE
SET COLOR TO &TmpColor && Restore Color
RETURN .T.
*: EOF: MSG24.PRG